package com.xayy.health.mgt.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.xayy.health.mgt.model.AssessParma;
import com.xayy.health.mgt.model.vo.AssessParmaVo;

import cn.kawins.mybatis.BaseMapper;

/**
 * @author Nie
 * @version v1.0
 * @date 2022-05-31 15:43
 */
public interface AssessParmaMapper extends BaseMapper<AssessParma> {

    @Select("select id, assess_name , assess_code from assess_parma where sat_id = #{satId}")
    List<AssessParmaVo> selectAssessParmaBySat(@Param("satId") Long satId);

    AssessParma selectDefaultAssessParma(@Param("satId") Object satId, @Param("systemId") Object systemId,
        @Param("comId") Object comId);

    List<AssessParma> selectListById(@Param("isUpdate") Boolean isUpdate,
        @Param("assessParma") AssessParma assessParma);

    List<AssessParma> selectPage(@Param("satId") Object satId, @Param("systemId") Object systemId,
        @Param("comId") Object comId);
}
